import Vue from "vue";
import Vuex from "vuex"
Vue.use(Vuex)

import login from "./modules/login"
import register from "./modules/register"
export default new Vuex.Store({
  state:{msg:"总仓库.msg"},
  getters:{},
  mutations:{
    updateMsg(state,msg){
      state.msg = msg
    }
  },
  actions:{
    updateMsg(store,msg){
      store.commit("updateMsg",msg)
    }
  },
  modules:{
    login,
    register
  }
})
